﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MSpecLauncher.Services
{
    /// <summary>
    /// Detects changes in the given files and trigger notification event
    /// </summary>
    public interface IFileChangesDetector
    {
        /// <summary>
        /// Event to notify changes in a file
        /// </summary>
        event Action<string> FileChanged;

        /// <summary>
        /// Add a new file to monitor
        /// </summary>
        void AddFileToWatch(string fileToWatch);

        /// <summary>
        /// Clear all the watches
        /// </summary>
        void ClearWatches();
    }
}
